
import { getLang } from "@/api/common";

export default defineStore('useCommon', {
	state: () => ({
	}),
	getters: {},
	actions: {
		// 获取多语言数据
		async getLang(params) {
			let url = $globalRequestUrl({
				url: getLang,
			});

			try {
				const rep = await $globalRequest(url, params, { method: "GET" });
				return rep;
			} catch (error) {
				return error;
			}
		}
	},
});
